import time


def find_and_wait(driver, seconds, by, value):
    time.sleep(seconds)
    element = driver.find_element(by, value)
    return element


def execute_script_and_wait(driver, seconds, script):
    time.sleep(seconds)
    driver.execute_script(script)

